export const routerData = [
  // 首页
  {
    path: '/home/index',
    element: 'WelcomeIndex',
    title: '首页',
    display: 1 /* 表示该路由需要在侧边栏显示 */,
    children: [
      {
        path: '/home/index/welcome',
        element: 'Welcome',
        title: '首页',
        display: 0 /* 表示该路由需要在侧边栏显示 */,
      },
      {
        path: '/home/index/accountsetting',
        element: 'AccountSetting',
        title: '信息设置',
        display: 0 /* 不展示侧边栏 */,
      },
    ]
  },


  // 商品
  {
    path: '/home/goods',
    element: 'Goods',
    title: '商品',
    display: 1,
    children: [
      {
        path: '/home/goods/GoodList',
        element: 'GoodList',
        title: '商品列表',
        display: 1,
      },
      {
        path: '/home/goods/GoodAudit',
        element: 'GoodAudit',
        title: '商品审核',
        display: 1,
      },

      {
        path: '/home/goods/GoodAdd',
        element: 'GoodAdd',
        title: '添加商品',
        display: 1,
      },
      {
        path: '/home/goods/GoodClassify',
        element: 'GoodClassify',
        title: '商品分类',
        display: 1,
      },
      {
        path: '/home/goods/GoodEvaluation',
        element: 'GoodEvaluation',
        title: '商品评价',
        display: 1,
      },
      {
        path: '/home/goods/GoodEvaluationDetail',
        element: 'GoodEvaluationDetail',
        title: '评价详情',
        display: 0 /* 不展示侧边栏 */,
      },
      {
        path: '/home/goods/GoodStock',
        element: 'GoodStock',
        title: '库存设置',
        display: 1,
      },
      {
        path: '/home/goods/GoodRecycle',
        element: 'GoodRecycle',
        title: '商品回收站',
        display: 1,
      },

    ],
  },

  // 订单
  {
    path: '/home/order',
    element: 'Order',
    title: '订单',
    children: [
      {
        path: '/home/order/orderList',
        element: 'OrderList',
        title: '订单列表',
        display: 1,
      },
      {
        path: '/home/order/orderDetails',
        element: 'OrderDetails',
        title: '订单详情',
        display: 0,
      },
      {
        path: '/home/order/orderSet',
        element: 'OrderSet',
        title: '订单设置',
        display: 1,
      },
      {
        path: '/home/order/orderRefund',
        element: 'OrderRefund',
        title: '退款/货/换货申请',
        display: 1,
      },
      {
        path: '/home/order/refundDetails',
        element: 'RefundDetails',
        title: '退款/货/换货详情',
        display: 0,
      },
      // {
      //   path: '/home/order/orderExchange',
      //   element: 'OrderExchange',
      //   title: '退换货申请',
      //   display: 1,
      // },
      // {
      //   path: '/home/order/exchangeDetails',
      //   element: 'exchangeDetails',
      //   title: '退换货申请详情',
      //   display: 0,
      // },
      {
        path: '/home/order/orderReason',
        element: 'OrderReason',
        title: '退换货原因设置',
        display: 1,
      },
    ],
  },

  // 运营
  {
    path: '/home/operations',
    element: 'Operations',
    title: '运营',
    display: 1,
    children: [
      {
        path: '/home/operations/operationSlide',
        element: 'OperationSlide',
        title: '轮播管理',
        display: 1,
      },
      {
        path: '/home/operations/operationZone',
        element: 'OperationZone',
        title: '专区管理',
        display: 1,
      },
      {
        path: '/home/operations/operationSearch',
        element: 'OperationSearch',
        title: '搜索管理',
        display: 1,
      },
      {
        path: '/home/operations/operationTag',
        element: 'OperationTag',
        title: '标签管理',
        display: 1,
      },
      {
        path: '/home/operations/operationFreight',
        element: 'OperationFreight',
        title: '运费管理',
        display: 1,
      },
      {
        path: '/home/operations/operationShop',
        element: 'OperationShop',
        title: '商品管理',
        display: 0,
      },
      {
        path: '/home/operations/addShop',
        element: 'AddShop',
        title: '添加商品',
        display: 0,
      },
    ],
  },

  // 促销
  {
    path: '/home/promotion',
    element: 'Promotion',
    title: '促销',
    display: 1,
    children: [
      {
        path: '/home/promotion/promotionma',
        element: 'Promotionma',
        title: '促销管理',
        display: 1,
      },
      {
        path: '/home/promotion/purchase',
        element: 'Purchase',
        title: '抢购管理',
        display: 1,
      },
      {
        path: '/home/promotion/deduction',
        element: 'Deduction',
        title: '抵扣管理',
        display: 1,
      },
      {
        path: '/home/promotion/commodity',
        element: 'Commodity',
        title: '商品管理',
        display: 0,
      },
      {
        path: '/home/promotion/AddPromotion',
        element: 'AddPromotion',
        title: '添加促销',
        display: 0,
      },
      {
        path: '/home/promotion/AddPurchase',
        element: 'AddPurchase',
        title: '添加抢购',
        display: 0,
      },
      {
        path: '/home/promotion/AddCommodity',
        element: 'AddCommodity',
        title: '添加商品',
        display: 0,
      },

    ],
  },

  // },
// 用户
 {
  path: '/home/user',
   element: 'User',
  title: '用户',
   children: [
  {
   path: '/home/user/userlist',
   element: 'UserList',
  title: '用户列表',
  display: 1,
   },
  {
  path: '/home/user/userDetails',
  element: 'UserDetails',
 title: '用户详情',
  display: 0,
  },
  {
   path: '/home/user/buypower',
   element: 'BuyPower',
 title: '购买力筛选',
 display: 1,
  },
 {
   path: '/home/user/userlabel',
   element: 'UserLabel',
   title: '用户标签',
 display: 1,
  },
],
},
  // 统计
  {
    path: '/home/statistics',
    element: 'Statistics',
    title: '统计',
    display: 1,
    children: [
      {
        path: '/home/statistics/transactionStatistics',
        element: 'TransactionStatistics',
        title: '交易统计',
        display: 1,
      },
      {
        path: '/home/statistics/shopStatistics',
        element: 'ShopStatistics',
        title: '商品统计',
        display: 1,
      },
    ],
  },

  // 财务
  {
    path: '/home/finance',
    element: 'Finance',
    title: '财务',
    display: 1,
    children: [
      {
        path: '/home/finance/synthesizeFinance',
        element: 'SynthesizeFinance',
        title: '综合统计',
        display: 1,
      },
    ],
  },

  // 权限
  {
    path: '/home/authority',
    element: 'Authority',
    title: '权限',
    display: 1,
    children: [
      {
        path: '/home/authority/roleManagement',
        element: 'RoleManagement',
        title: '角色管理',
        display: 1,
      },
      {
        path: '/home/authority/authorityManagement',
        element: 'AuthorityManagement',
        title: '成员管理',
        display: 1,
      },
    ],
  },
];
